<?php

use App\Tag;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class TagsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $datas = [
            ['tag_name' => 'Java', 'column_id' => 2],
            ['tag_name' => 'PHP', 'column_id' => 2],
            ['tag_name' => 'C/C++', 'column_id' => 2],
            ['tag_name' => 'Python', 'column_id' => 2],
            ['tag_name' => 'C#', 'column_id' => 2],
            ['tag_name' => 'golang', 'column_id' => 2],
            ['tag_name' => 'scala', 'column_id' => 2],
            ['tag_name' => 'laravle', 'column_id' => 2],
            ['tag_name' => 'JavaScript', 'column_id' => 1],
            ['tag_name' => 'CSS', 'column_id' => 1],
            ['tag_name' => 'HTML', 'column_id' => 1],
            ['tag_name' => 'UI', 'column_id' => 4],
            ['tag_name' => '网页', 'column_id' => 4],
            ['tag_name' => '插画', 'column_id' => 4]
        ];
        DB::table('tags')->insert($datas);
    }
}
